package com.oil.petro.eshop.dao;

import com.oil.petro.eshop.entity.Product;
import java.util.List;

public interface ProductDAO {

    public Product get(int id);

    public void delete(Product product);

    public void delete(int productId);

    public int save(Product product);

    public void update(Product product);

    public List<Product> getList(int amount, int page);
    
    public List<Product> getList();
 
    public List<Product> getList(int status);

    public List<Product> getProductListForCategory(int categoryId);

    public List<Product> searchProductList(int categoryId, int manufacturerId, boolean orderFlag,int amount, int pageNumber);

}
